/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.edu.service.selectiontitle;

import java.util.List;

import com.idenger.common.service.CrudService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.idenger.common.persistence.Page;
import com.idenger.modules.edu.entity.selectiontitle.EduSelectionTitle;
import com.idenger.modules.edu.dao.selectiontitle.EduSelectionTitleDao;

/**
 * 选择题Service
 * @author 兰正军
 * @version 2017-11-30
 */
@Service
@Transactional(readOnly = true)
public class EduSelectionTitleService extends CrudService<EduSelectionTitleDao, EduSelectionTitle> {

	public EduSelectionTitle get(String id) {
		return super.get(id);
	}
	
	public List<EduSelectionTitle> findList(EduSelectionTitle eduSelectionTitle) {
		return super.findList(eduSelectionTitle);
	}
	public Page<EduSelectionTitle> findListByWarehourseByPage(Page<EduSelectionTitle> page, EduSelectionTitle eduSelectionTitle){
		eduSelectionTitle.setPage(page);
		page.setList(dao.findListByWarehourse(eduSelectionTitle));
		return page;
	}
	
	public Page<EduSelectionTitle> findPage(Page<EduSelectionTitle> page, EduSelectionTitle eduSelectionTitle) {
		return super.findPage(page, eduSelectionTitle);
	}
	
	@Transactional(readOnly = false)
	public void save(EduSelectionTitle eduSelectionTitle) {
		super.save(eduSelectionTitle);
	}
	
	@Transactional(readOnly = false)
	public void delete(EduSelectionTitle eduSelectionTitle) {
		super.delete(eduSelectionTitle);
	}
	
	public void saveList(List<EduSelectionTitle> list){
		dao.saveList(list);
	}
	
}